<?php

//Enbart om kerberos-kdc är installerad
if( is_dir( '/etc/krb5kdc' ) ) {
        $name = '';
        if( isset($_GET['name']) )
                $name = $_GET['name'];
        else if( isset($_POST['name']) )
                $name = $_POST['name'];

        if( $name != "" )
          exec('/usr/sbin/kadmin.local -q "delprinc -force '.$name.'"');
}
?>
